﻿using System;
using Skyper.Model;
using System.Collections.ObjectModel;
using System.Collections.Generic;

namespace Skyper.ViewModel {
	public class MainViewModel : BaseViewModel {
		#region Fields
		private readonly List<PanoramaViewModel> panoramas = new List<PanoramaViewModel>();
		private PanoramaViewModel active;
		#endregion
		#region Constructor
		public MainViewModel() {
			this.panoramas.Add(new ContactsPanoramaViewModel());
			this.panoramas.Add(new RecentPanoramaViewModel());
			this.active = panoramas[0];
			App.Skype.DebugData();
		}
		#endregion
		#region Private

		#endregion
		#region Property
		public List<PanoramaViewModel> Panoramas {
			get {
				return this.panoramas;
			}
		}
		public PanoramaViewModel Active {
			get {
				return active;
			}
			set {
				if (this.active != value) {
					this.active = value;
					this.OnPropertyChanged("Active");
				}
			}
		}
		#endregion
	}
}
